package com.example.makerspace.controller.largeScreen;


import com.example.makerspace.service.ApplicationService;
import com.example.makerspace.vo.BasicDataVO;
import com.example.makerspace.vo.CoreDataVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@ResponseBody
@RequestMapping("/api/visualizationPlatform")
@Api(tags = "赛博众创可视化平台")
public class VisualizationPlatformController {
    @Resource
    private ApplicationService applicationService;

    @ApiOperation(value="玫瑰图",notes ="上架产品数据总览-数据格式说明")
    @GetMapping("/roseChart")
    public BasicDataVO roseChart() {
        return  applicationService.roseChart();
    }

    @ApiOperation(value="玫瑰图下方产品",notes ="上架产品数据总览-数据格式说明")
    @GetMapping("/roseChart1")
    public BasicDataVO roseChart1() {
        return  applicationService.roseChart1();
    }

    @ApiOperation(value="基本信息",notes ="基本信息说明")
    @GetMapping("/basicInformation")
    public BasicDataVO basicInformation() {
        return  applicationService.basicInformation();
    }

    @ApiOperation(value="产品排序前8",notes ="产品排序前8说明")
    @GetMapping("/productSortV")
    public BasicDataVO productSortV() {
        return  applicationService.productSortV();
    }
    @ApiOperation(value="打电话",notes ="打电话说明")
    @GetMapping("/callDay")
    public BasicDataVO callDay() {
        return  applicationService.callDay();
    }
    @ApiOperation(value="赛题数据",notes ="赛题数据说明")
    @GetMapping("/questionsData")
    public BasicDataVO questionsData() {
        return  applicationService.questionsData();
    }
    @ApiOperation(value="赛题雷达图",notes ="赛题雷达图说明")
    @GetMapping("/questionsRadar")
    public BasicDataVO questionsRadar() {
        return  applicationService.questionsRadar();
    }
    @ApiOperation(value="产品对比",notes ="产品对比说明")
    @GetMapping("/productComparison")
    public BasicDataVO productComparison() {
        return  applicationService.productComparison();
    }
    @ApiOperation(value="客服统计",notes ="客服统计")
    @GetMapping("/customerNumber")
    public BasicDataVO customerNumber() {
        return  applicationService.customerNumber();
    }

    @ApiOperation(value="地区发布",notes ="地区发布")
    @GetMapping("/regionalReleases")
    public BasicDataVO regionalReleases() {
        return  applicationService.regionalReleases();
    }

    @ApiOperation(value="右下角雷达图",notes ="右下角雷达图说明")
    @GetMapping("/radar")
    public BasicDataVO radar() {
        return  applicationService.radar();
    }
}
